import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class a {
    public static void main(String[] args) {
        int a[] = {1, 3, 3, 4, 5, -2};
        int b[] = new int[5];
        int max = 0;
        int min = 0;
        for (int i = 0; i < a.length; i++) {
            int c = a[0];

            if (a[i] > max) {
                max = a[i];
            }
            if (min > a[i]) {
                min = a[i];
            }


        }
        System.out.println(min);

        System.out.println(max);
    }
}
